Skip to content

feat(cli): add outdated command for checking package updates#262

Merged
fengmk2 merged 1 commit intomainfrom
10-24-feat_pm_add_outdated_commands
Oct 28, 2025
Merged

feat(cli): add outdated command for checking package updates#262
fengmk2 merged 1 commit intomainfrom
10-24-feat_pm_add_outdated_commands

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Oct 28, 2025

TL;DR

Added a new vite outdated command to check for outdated packages, with support for all package managers (pnpm, npm, yarn).

What changed?

  • Added a new outdated command to the Vite CLI that checks for outdated packages
  • Implemented package manager-specific command resolution for pnpm, npm, and yarn
  • Added support for various output formats (table, list, JSON)
  • Implemented workspace filtering with --filter flag
  • Added dependency type filtering options (--prod, --dev, --no-optional)
  • Added support for global package checking with -g flag
  • Implemented special handling for yarn@2+ which uses upgrade-interactive
  • Added appropriate warnings when flags aren't supported by specific package managers

How to test?

# Basic usage
vite outdated

# Check specific packages
vite outdated react lodash

# Output formats
vite outdated --format json
vite outdated --format list
vite outdated --long

# Workspace operations
vite outdated --filter app
vite outdated -r

# Dependency type filtering (pnpm-specific)
vite outdated --prod
vite outdated --dev
vite outdated --no-optional

# Global packages
vite outdated -g

Why make this change?

This command simplifies dependency management by providing a unified interface for checking outdated packages across all package managers. It automatically adapts to the detected package manager (pnpm/npm/yarn) and translates flags appropriately, making it easier for developers to maintain up-to-date dependencies without needing to remember different syntaxes for each package manager.

@fengmk2 fengmk2 changed the title feat(pm): add outdated commands feat(cli): add outdated commands Oct 28, 2025
Copy link
Copy Markdown
Member Author

fengmk2 commented Oct 28, 2025

@fengmk2 fengmk2 changed the title feat(cli): add outdated commands feat(pm): add outdated command for checking package updates Oct 28, 2025
@fengmk2 fengmk2 changed the title feat(pm): add outdated command for checking package updates feat(cli): add outdated command for checking package updates Oct 28, 2025
@fengmk2 fengmk2 force-pushed the 10-24-feat_pm_add_outdated_commands branch from e45b398 to 87e0cdc Compare October 28, 2025 04:38
@fengmk2 fengmk2 force-pushed the 10-24-feat_pm_add_dedupe_commands branch from 1ed0db7 to 6ee1da6 Compare October 28, 2025 04:38
@fengmk2 fengmk2 force-pushed the 10-24-feat_pm_add_outdated_commands branch from 87e0cdc to 17e4fd0 Compare October 28, 2025 04:54
@fengmk2 fengmk2 force-pushed the 10-24-feat_pm_add_dedupe_commands branch 2 times, most recently from fc6dcc9 to f0e4bb4 Compare October 28, 2025 06:36
@fengmk2 fengmk2 force-pushed the 10-24-feat_pm_add_outdated_commands branch 4 times, most recently from b8e90fc to 520eaf1 Compare October 28, 2025 07:38
Comment thread crates/vite_install/src/commands/outdated.rs
@fengmk2 fengmk2 marked this pull request as ready for review October 28, 2025 07:40
@fengmk2 fengmk2 self-assigned this Oct 28, 2025
@fengmk2 fengmk2 changed the base branch from 10-24-feat_pm_add_dedupe_commands to graphite-base/262 October 28, 2025 08:23
@fengmk2 fengmk2 force-pushed the 10-24-feat_pm_add_outdated_commands branch from 520eaf1 to 6dc7356 Compare October 28, 2025 09:56
@fengmk2 fengmk2 changed the base branch from graphite-base/262 to 10-24-feat_pm_add_dedupe_commands October 28, 2025 09:57
@fengmk2 fengmk2 changed the base branch from 10-24-feat_pm_add_dedupe_commands to graphite-base/262 October 28, 2025 10:01
@fengmk2 fengmk2 changed the base branch from graphite-base/262 to main October 28, 2025 10:02
@fengmk2 fengmk2 force-pushed the 10-24-feat_pm_add_outdated_commands branch from 6dc7356 to 79e9e40 Compare October 28, 2025 10:02
@fengmk2 fengmk2 force-pushed the 10-24-feat_pm_add_outdated_commands branch from 79e9e40 to 16ef856 Compare October 28, 2025 10:03
@fengmk2 fengmk2 merged commit 08a11f1 into main Oct 28, 2025
8 of 10 checks passed
Copy link
Copy Markdown
Member Author

fengmk2 commented Oct 28, 2025

Merge activity

@fengmk2 fengmk2 deleted the 10-24-feat_pm_add_outdated_commands branch October 28, 2025 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants